// Arena Fan
// arenafan.txt (tiny modification of nullmonst.txt)
// by Kelandon
// v1.0.1
// This is a creature that just sits still and does nothing. The talking message
// is different from nullmonst.txt. If it dies, it increases the crime level by
// one (new in v1.0.1).
// If a flag is set, changes its TALKING_STATE response.
// Memory Cells:
//   Cell 0,1 - Coordinates of the flag to change the response.

begincreaturescript;

variables;

short i,j;

body;

beginstate INIT_STATE;
	if ((get_memory_cell(0) == 0) && (get_memory_cell(1) == 0))
		{set_memory_cell(0,1);
		set_memory_cell(1,2); }
	set_mobility(ME,0);
break;

beginstate DEAD_STATE;
	change_crime_level(1);
	print_str("You killed a fan at the Arena!");
break;

beginstate START_STATE;
	set_state(START_STATE);
break;

beginstate 3; // attacking
	set_state(START_STATE);
break;

beginstate TALKING_STATE;
if (get_flag(get_memory_cell(0),get_memory_cell(1)))
	print_str("Talking: It just continues to cheer.");
else
	print_str("Talking: It pays no attention to you.");
break;